package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Length;

/**
 * 角色
 *
 * @author luoyong
 */
@Data
@ApiModel("角色 入参DTO")
public class LyRoleDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 63, message = "角色名称长度不能超过63位")
    @NotEmpty
    @ApiModelProperty("角色名称")
    private String name;

    @Length(max = 1023, message = "角色描述长度不能超过1023位")
    @ApiModelProperty("角色描述")
    private String desc;

    @ApiModelProperty("是否启用")
    private Integer enabled;

}
